package com.woniuxy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.woniuxy.pojo.Role;
import com.woniuxy.pojo.Users;

public interface UsersMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

	List<Users> selectAll(String condition);

	Users selectByUserName(String userName);
	
	Users isExist(@Param("loginName")String loginName, @Param("newPassword")String newPassword);

	void resetPassword(@Param("userName")String userName, @Param("resetPassword")String resetPassword);


}